import java.util.Arrays;
import java.util.Scanner;

public class Demo15 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] ints = new int[3];
        for (int i = 0; i < ints.length; i++) {
            ints[i] = scanner.nextInt();
        }
        Arrays.sort(ints);
        for (int anInt : ints) {
            System.out.println(anInt);
        }

    }
}
